/**
 * 测试 
 */

const db = require('../db');

let sql = 'insert into t_book set ?';
let data = {
    name: '测试'
};
db.base(sql, data, (err, results, fields)=>{
    if (err) throw err;
    console.log('insertId: ', results.insertId);
    console.log('affectedRows: ', results.affectedRows);
});
